<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>

<script type="text/javascript">
	function appBack() {
		document.location.href='${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaMenu.do?YMD=${YMD}&res=${res}';
	}
</script>

<script type="text/javascript">
	//평가하기
	function fnScore() {
	 var fm2 = document.form2;
		if(fm2.Score.value =="" ){
			alert("점수를 선택해주세요.");
			return;
		}
		if (confirm('구내식당평가를 하시겠습니까?')) {
			fm2.action = "${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaMenuScore.do";
			fm2.submit();
		}
		return;
	}
</script>
</head>

<body>
<div id="wrap">
		<div class="header">
			<h1>구내식당</h1>
		</div><!-- // header -->
		<div class="content">
		<h3>${year }년 ${month}월 ${day }일 구내식당평가</h3>
		<div class="point_box">
			<p>오늘의 평가점수&nbsp;<span class="point">${mapRating.Rating}</span><span class="member">참여인원&nbsp;<span class="point">(${mapRating.RatingCnt})</span></span></p>
			<form name="form2" action="" method="get">
				<input type="hidden" name="res" value="${res}" />
				<input type="hidden" name="YMD" value="${year}-${month}-${day}" />	
					<fieldset>
						<legend>평가하기</legend>
							<p>
								<select name="Score" title="평가하기">
									<option value="5">매우만족</option>
									<option value="4">만족</option>
									<option value="3">보통</option>
									<option value="2">불만족</option>
									<option value="1">매우불만족</option>
								</select>
								&nbsp;&nbsp;<img onclick="fnScore();" src="${requestScope.contextPath}/images/btn/btn_evaluate.gif" alt="평가하기" border=0 style="cursor:hand" />
							</p>
						</fieldset>
					</form>
				</div>
				<p class="btn_area2 btn_view"><a href="${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaMenu.do??res=${res}&YMD=${year}-${month}-${day}"><img src="../../images/btn/btn_menu_view.gif" alt="식단보기" /></a>&nbsp;&nbsp;<a href="${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaBoard.do?res=${res}&YMD=${year}-${month}-${day}"><img src="${requestScope.contextPath}/images/btn/btn_opinion4.gif" alt="의견보기" /></a></p>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>
